package com.example.demo.dao;

import com.example.demo.domain.Course;
import com.example.demo.provider.SelectSqlProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

@Mapper
public interface CourseDao {

//    @Select("select * from student")
    List<Course> getAll();


//    @Select("select * from course where c_id =#{cid}")
    @SelectProvider(type = SelectSqlProvider.class ,method ="selectByCId")
    Course getById(String cid);

}
